package org.shop.pro.mapper;

import java.util.List;

import javax.swing.event.CaretListener;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.shop.pro.entity.Shopgoods;
@Mapper
public interface ShopgoodsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Shopgoods record);

    Shopgoods selectByPrimaryKey(Integer id);

    List<Shopgoods> selectAll();

    int updateByPrimaryKey(Shopgoods record);
    
    List<Shopgoods> goodslists(int goodstypeid);
    
    List<Shopgoods> goodslist(@Param("typeid")int typeid,@Param("shopid")int shopid);
    
    List<Shopgoods> selectAlls();
    
    List<Shopgoods> selectshopAll(Integer shopid);      
    
    List<Shopgoods> cartlist(@Param("vipid")int vipid,@Param("shopid")int shopid);
    
    List<Shopgoods> cartgoods(int vipid);
}